package com.info.zhiduoduo.admin.model.formbean.scheduletask;

import com.info.zhiduoduo.common.validator.IntIn;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SwitchTaskFormBean {

	@ApiModelProperty("定时任务id")
	private int id;

	@IntIn(value = {1, 2}, message = "请选择：1：正常 2：停止")
	@ApiModelProperty("1：正常 2：停止 （修改此值可以直接开启或停止任务的执行）")
	private int state;
}
